﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Axis.BusinessObject.Research;
using Axis.BusinessObject.Core;
using Axis.Dao.Core;
using Axis.Dao.Research;
using PhuLeBooze.Global;

namespace PhuLeBooze.Views.Project
{
    public partial class QuestionPath : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                StringBuilder resultProject = new StringBuilder();
                CResearchDao CResearch = new CResearchDao();
                IList<CProject> listProject = CResearch.GetProject(string.Format("<InputValue UserID='{0}' SecrectToken='{1}'/>", CSecurity.USER_ID, CSecurity.SECRECT_TOKEN));
                ddlProjectList.DataSource = listProject;
                ddlProjectList.DataTextField = "Name";
                ddlProjectList.DataValueField = "ID";
                ddlProjectList.DataBind();
                ddlProjectList.Items.Insert(0, new ListItem("(Tất cả)", ""));

                StringBuilder resultQuestionType = new StringBuilder();
                IList<CListData> listQuestionType = (new CCoreDao()).GetListData(string.Format("<InputValue UserID='{0}' SecrectToken='{1}' FunctionCode='QuestionnaireType'/>", CSecurity.USER_ID, CSecurity.SECRECT_TOKEN));


            }
        }
    }
}